// import com.alibaba.druid.sql.ast.SQLExpr_ptr;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableSetLocation.h"
#include "../../visitor/SQLASTVisitor.h"

SQLExpr_ptr SQLAlterTableSetLocation::getLocation()
{
  return location;
}

void SQLAlterTableSetLocation::setLocation(SQLExpr_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLAlterTableSetLocation));
  }
  this->location = x;
}

// @Override
void SQLAlterTableSetLocation::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableSetLocation)))
  {
    acceptChild(visitor, location);
  }
  visitor->endVisit(SharedObject(SQLAlterTableSetLocation));
}
